Manipulate solutions to Partial Differential Equations
Use separation of variables solution to solve a PDE
Derive particular solutions that solve initial and boundary conditions
Additional Resources
Tutorials
Step-by-step Question : Takes you through an example step by step the way we learn it - this question alone made me understand PDEs.
Alternate PDE Method : This may not make much sense until you have your head around it - A slightly different method compared to what we’re taught but the beauty is they all work!
Problem sheet
Skill Building Questions
Problem 1.
Which of the following are solutions to Laplace’s equation,
?
For those that are not, can you come up with a differential equation involving the Laplacian, , that is a solution of?
(a)
Toggle answer
Yes, The Laplacian operator is defined as:
NB This is an example for this kind problem in case you get confused by these short answers :)
(b)
Toggle answer
No, but
(c)
Toggle answer
Yes, , this becomes a useful result in complex analysis.
(d)
Toggle answer
Yes,
(e)
Toggle answer
No, but would work.
Problem 2.
Show that the function satisfies the partial differential equation:
Toggle answer
Separation of Variables 0 – 1D Wave Equation
Go through the process of solving the general soultion to the
1D Wave equation, As we did in the
lecture notes.
Assume a solution that is seperable, e.g., .
Plug this into the PDE, and let the derivatives work on like terms.
Divide the whole thing by and collect like terms.
Set these terms to be constant, to define ODEs and a dispersion relation.
Solve the ODEs and combine the solutions together.
Toggle answer
This is solved with more detail in the
lecture notes.
We'll do a different solution here and solve with complex exponentials.
First assume solution,
Next plug into the ODE,
Divide through by
Assign constants to each group, I've chosen negative second power constants.
[See why.](/module-resources/notes/14-partial-differential-equations#better-constants)
Giving,
Let's solve the ODEs,
Which we can then combine to,
At this point we are done, but we could also insert our dispersion relation,
to remove one of the constants.
Which is the general solution.
Once you have done this, you can return the question later and try to solve
it using different trial solutions
(Sines and cosines, exponentials, hyperbolic functions)
and different choice of constants (powers, sign).
See how they each behave and how the choices interact with each other.
Separation of Variables 1 – Choice of constants
In the
Better Constants
section of the notes,
We looked at the 1D wave equation,
and chose ODE constants,
and , to solve the PDE.
You were asked to see what happened if instead we used
positive squared coefficients, i.e.,
Show, by using a separable solution on the PDE,
that we can return the ODEs above, and that their relationship is,
Then show by solving the ODEs,
that exponentially growing and decaying solutions can be produced.
Write the general solution to the PDE in this form.
Toggle answer
Let's start with the usual assumtion of a separable solution,
Inserting into our PDE, dividing through, we get,
Now, let's use different positive squared constants, gamma and kappa.
Which we can extract two ODEs and a dispersion relation.
With the dispersion relation being what we were trying to prove.
Let's look at the temporal ODE,
This is asking the question,
what function when differentiated twice, gives itself times a constant?
The hyperbolic trig functions answer this question – try this yourself.
But so do growing and decaying exponentials.
Let's use as our trial solution.
The second derivative is,
And so,
hence,
So our temporal ODE solution is,
The same reasoning applies to the spatial ODE,
For a full solution,
Let's insert the dispersion relation,
These solutions tell us that an initial condition that looks like
exponential functions will either grow or decay away at future times.
(Depending on the initial time derivative)
Do notice, that we indeed return the usual oscillatory solutions for
complex or imaginary values of or .
Separation of Variables 2 – 2D Diffusion Equation
In the notes, we highlighted the
2D Diffusion Equation
as an example of using separation of variables.
Find the general solution, , to this PDE.
Toggle answer
First, let's write the Laplacian out in full,
Next, assume a separated solution of
Then input into the PDE,
Each term here can be assigned a constant,
For the term, let's call this , i.e.,
I've chosen a negative sign in front of the constant here,
this is optional, but will eventually mean exponentially decaying solutions
for positive values, rather than unphysical growing ones.
For the and constants, let's use,
Here I always pick the power of the constant to be as big as the highest
order of derivative.
In this case, I pick a negative sign too, this will match with the
term and ensure all positive signs in the dispersion relation,
which comes out as,
Next we solve the ODEs,
And for the spatial parts, we have a choice to solve in terms of
sinusoids or complex exponentials, I'll do complex exponentials here.
The complex exponential solutions are nicer when there's a lot of terms,
e.g. in 2d, because the positive and negative solution can be captured
with a single exponential term, rather than both a and a .
The general solution then is the product of all the separated solutions,
with,
As the final answer.
Exam Style Question
Problem 3.
Vibrations on a guitar string can be modelled by the wave equation,
where is the displacement of the string from its equilibrium position, is its tension, and is the linear density of the string. This is a clone of the 19-20 progress test.
(a) Use separation of variables to produce linear ODEs for the separated parts.
State any relationship between constants you define.
Toggle answer
Using , the PDE becomes
And therefore
Extract ODEs,
Then,, with
(b) Solve the ODEs in terms of sinusoidal solutions.
Toggle answer
and
Accept complex exponentials, accept equivalent correct forms, accept sum with coefficients, A cos + B sin etc.
(c) The string has a length L, and is fixed at both ends, such that . How does this constrain your solutions? Write a general solution of the PDE, , that is subject to these constraints.
Toggle answer
Fixed at constrains to spatial solutions only.
Fixed at constrains to .
(d) Write an expression for the fundamental (lowest) frequency allowed by the string.
Toggle answer
Using and , then
Fundamental frequency, set .
(e) If a guitar has a neck length of 0.65 m, and a string has linear density 5 g/m, what tension does the string need to be to sound an A note at a frequency Hz?
Toggle answer
Rearrange for \tau.
Insert given values,
Extension Questions
Problem 4.
Prove for the 1D diffusion equation,
,
that the total area under the curve does not change over time.
(You may assume that for ).
Toggle answer
The area under the curve is calculated by integrating over all x.
Integrating both sides of the PDE,
We can swap the order of differentiation and integration on the LHS and directly integrate the expression on the RHS,
The x derivatives go to zero at infinity
Therefore the area under the concentration curve does not change in time.
The area will be proportional to the numbers of ions or molecules etc. the total number of these will stay the same as they diffuse within the space.
The area taken over a region of the space will be proportional to the number of particles in that region.
Problem 5.
Solve the 3D wave equation by separation of variables to show,
,
is a solution. With
What is the resulting relationship between and ?
Toggle answer
NB: Coordinate vector and, is a vector field.
Start with a separation of variables solution, let .
then,
There is some freedom of choice as to how you define the constants here.
In order to match to the test solution, ,
the most straightforward choice is,
But here we'll solve as if we assumed arbitrary constants instead,
With .
Solving the ODEs, we get,
And equivalently for and .
To match with our test solution,
, We'll keep the negative exponential from the function,
and the positive exponentials from the spatial functions.
This allow us to build the solution,
,
Matching coefficients requires,}
Which gives,
,
or .
and a dispersion relations,}
Problem 6.
Show that a Gaussian function,
, solves the 1D diffusion equation, on the condition that
.
Toggle answer
This is a show-that question, so you need only show it satisfies the equation, rather than proving it outright (which is done in the course notes). This is an ideal opportunity for the chain rule, rather than directly inserting the form of . First calculate the derivatives of the diffusion equation:
and then,
Inserting into the diffusion equation,
Divide common terms,
Substitute for ,
LHS is equal RHS, so this is proven.
Problem 7.
For an initial concentration,
,
governed by the diffusion equation, calculate the concentration at
and , for ,
, and .
(Use the solution given in Q6 to help)
Toggle answer
First set up a solution to the diffusion equation such that it matches the initial condition. i.e.
Then substitute in all constant and variable values,
Which reduces to,
Answers
For Printing
Revision Questions
The questions included are optional, but here if you want some extra practice.
Lboro Questions : Not exactly the same as our method but very close - you should be able to work though these and get to either the final answer or the ‘step before’ the answer.
Tutorial/Questions : Sort of a tutorial as well, walks you through the steps but also provides examples along the way that ‘build up’. Look particularly at sections 9-4 to 8, again might not be exactly the same at every step but it’s easy to figure which stages are relevant.
Other Questions : Gives them in a different context, not necessarily focused on our method.
More Other Questions : Many use different methods, but try to get the separation of variables down. If you wanted, try go onto linking the summation.
Laplace PDEs : Good context questions, though the end form may not be what we were taught.